package com.hzy.fivepalace.wx.async;


import com.hzy.fivepalace.db.dao.DtsUserFootprintMapper;
import com.hzy.fivepalace.db.domain.DtsUserFootprint;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


/**
 * 微信api异步工厂（产生任务用）
 *
 * @author gejian
 */
@Service
public class WxAsyncFactory {

    private static final Logger logger = LoggerFactory.getLogger(WxAsyncFactory.class);

    @Resource
    private DtsUserFootprintMapper userFootprintMapper;


    /**
     * 异步新增用户足迹
     * @param userFootprint
     */
    @Async
    public void asyncAddFootprint(DtsUserFootprint userFootprint){

        userFootprintMapper.insertSelective(userFootprint);
    }

}
